package com.wenjie.original.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.wenjie.original.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@Table("sys_db_enum")
@ApiModel("枚举映射")
public class SysDbEnum extends BaseEntity {


    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @ApiModelProperty("枚举映射类型")
    private Long sysDbEnumId;

    @ApiModelProperty("表映射Id")
    private Long sysDbTableId;

    @ApiModelProperty("字段映射Id")
    private Long sysDbFieldId;

    @ApiModelProperty("表的名字")
    private String tableName;

    @ApiModelProperty("字段的名字")
    private String fieldName;

    @ApiModelProperty("key")
    private String key;

    @ApiModelProperty("value")
    private String value;
}